home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / ASAP2.lcf < prev    next >
Encoding:
Text File  |  2007-12-12  |  6.0 KB  |  262 lines

  1. object SyntAnalyzer6: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Default'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clWindowText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       FormatType = ftCustomFont
  11.     end
  12.     item
  13.       DisplayName = 'Reserved words'
  14.       Font.Charset = DEFAULT_CHARSET
  15.       Font.Color = clWindowText
  16.       Font.Height = -13
  17.       Font.Name = 'Courier New'
  18.       Font.Style = [fsBold]
  19.     end
  20.     item
  21.       DisplayName = 'String'
  22.       Font.Charset = DEFAULT_CHARSET
  23.       Font.Color = clBlue
  24.       Font.Height = -13
  25.       Font.Name = 'Courier New'
  26.       Font.Style = []
  27.     end
  28.     item
  29.       DisplayName = 'Comment'
  30.       Font.Charset = DEFAULT_CHARSET
  31.       Font.Color = clRed
  32.       Font.Height = -13
  33.       Font.Name = 'Courier New'
  34.       Font.Style = [fsBold]
  35.     end
  36.     item
  37.       DisplayName = 'Integer'
  38.       Font.Charset = DEFAULT_CHARSET
  39.       Font.Color = clActiveCaption
  40.       Font.Height = -13
  41.       Font.Name = 'Courier New'
  42.       Font.Style = [fsBold]
  43.     end
  44.     item
  45.       DisplayName = 'Float'
  46.       Font.Charset = DEFAULT_CHARSET
  47.       Font.Color = clMaroon
  48.       Font.Height = -13
  49.       Font.Name = 'Courier New'
  50.       Font.Style = [fsBold]
  51.     end
  52.     item
  53.       DisplayName = 'Marked block'
  54.       Font.Charset = DEFAULT_CHARSET
  55.       Font.Color = clHighlightText
  56.       Font.Height = -13
  57.       Font.Name = 'Courier New'
  58.       Font.Style = []
  59.       BgColor = clHighlight
  60.       FormatType = ftColor
  61.     end
  62.     item
  63.       DisplayName = 'A2ML section'
  64.       Font.Charset = DEFAULT_CHARSET
  65.       Font.Color = clGreen
  66.       Font.Height = -13
  67.       Font.Name = 'Courier New'
  68.       Font.Style = []
  69.     end
  70.     item
  71.       DisplayName = 'Block names'
  72.       Font.Charset = DEFAULT_CHARSET
  73.       Font.Color = clMaroon
  74.       Font.Height = -13
  75.       Font.Name = 'Courier New'
  76.       Font.Style = [fsBold]
  77.     end>
  78.   TokenRules = <
  79.     item
  80.       DisplayName = 'Identifier'
  81.       TokenType = 2
  82.       Expression = '[a-z_]\w*'
  83.       ColumnFrom = 0
  84.       ColumnTo = 0
  85.     end
  86.     item
  87.       DisplayName = 'String'
  88.       StyleName = 'String'
  89.       TokenType = 4
  90.       Expression = '".*?("|$)'
  91.       ColumnFrom = 0
  92.       ColumnTo = 0
  93.     end
  94.     item
  95.       DisplayName = 'Comment'
  96.       StyleName = 'Comment'
  97.       TokenType = 1
  98.       Expression = '(?s)/\*.*?(\*/|\Z)'
  99.       ColumnFrom = 0
  100.       ColumnTo = 0
  101.     end
  102.     item
  103.       DisplayName = 'Block begin'
  104.       StyleName = 'Reserved words'
  105.       TokenType = 9
  106.       Expression = '/begin'
  107.       ColumnFrom = 0
  108.       ColumnTo = 0
  109.     end
  110.     item
  111.       DisplayName = 'Block end'
  112.       StyleName = 'Reserved words'
  113.       TokenType = 10
  114.       Expression = '/end'#13#10
  115.       ColumnFrom = 0
  116.       ColumnTo = 0
  117.     end
  118.     item
  119.       DisplayName = 'HEX'
  120.       StyleName = 'Integer'
  121.       TokenType = 7
  122.       Expression = '0x[\da-f]+'
  123.       ColumnFrom = 0
  124.       ColumnTo = 0
  125.     end
  126.     item
  127.       DisplayName = 'Integer'
  128.       StyleName = 'Integer'
  129.       TokenType = 5
  130.       Expression = '\d+'
  131.       ColumnFrom = 0
  132.       ColumnTo = 0
  133.     end
  134.     item
  135.       DisplayName = 'Float'
  136.       StyleName = 'Float'
  137.       TokenType = 6
  138.       Expression = '\d+\.?\d+e[\+\-]?\d+|\d+\.\d+'
  139.       ColumnFrom = 0
  140.       ColumnTo = 0
  141.     end>
  142.   BlockRules = <
  143.     item
  144.       DisplayName = 'Reserver words'
  145.       StyleName = 'Block names'
  146.       BlockType = btTagDetect
  147.       ConditionList = <
  148.         item
  149.           TagList.Strings = (
  150.             'A2ML'
  151.             'AXIS_PTS'
  152.             'CHARACTERISTIC'
  153.             'COMPU_METHOD'
  154.             'COMPU_TAB'
  155.             'COMPU_VTAB'
  156.             'COMPU_VTAB_RANGE'
  157.             'FRAME'
  158.             'FUNCTION'
  159.             'GROUP'
  160.             'HEADER'
  161.             'IF_DATA'
  162.             'MEASUREMENT'
  163.             'MOD_COMMON'
  164.             'MOD_PAR'
  165.             'PROJECT'
  166.             'RECORD_LAYOUT'
  167.             'UNIT'
  168.             'USER_RIGHTS'
  169.             'VARIANT_CODING')
  170.           TokenTypes = 4
  171.         end>
  172.       HighlightPos = cpAny
  173.       IgnoreAsParent = False
  174.     end
  175.     item
  176.       DisplayName = 'Begin'
  177.       ConditionList = <
  178.         item
  179.           TokenTypes = 4
  180.         end
  181.         item
  182.           TokenTypes = 512
  183.         end>
  184.       BlockOffset = 1
  185.       BlockEnd = 'End'
  186.       NameFmt = '%s-1'
  187.       GroupFmt = '%s0'
  188.       HighlightPos = cpAny
  189.       IgnoreAsParent = False
  190.     end
  191.     item
  192.       DisplayName = 'End'
  193.       BlockType = btRangeEnd
  194.       ConditionList = <
  195.         item
  196.           TokenTypes = 4
  197.         end
  198.         item
  199.           TokenTypes = 1024
  200.         end>
  201.       HighlightPos = cpAny
  202.       IgnoreAsParent = False
  203.     end
  204.     item
  205.       DisplayName = 'A2ML begin'
  206.       StyleName = 'A2ML section'
  207.       ConditionList = <
  208.         item
  209.           TagList.Strings = (
  210.             'A2ML')
  211.           TokenTypes = 4
  212.         end
  213.         item
  214.           TokenTypes = 512
  215.         end>
  216.       BlockOffset = 1
  217.       BlockEnd = 'A2ML end'
  218.       HighlightPos = cpAny
  219.       IgnoreAsParent = False
  220.     end
  221.     item
  222.       DisplayName = 'A2ML end'
  223.       BlockType = btRangeEnd
  224.       ConditionList = <
  225.         item
  226.           TagList.Strings = (
  227.             'A2ML')
  228.           TokenTypes = 4
  229.         end
  230.         item
  231.           TokenTypes = 1024
  232.         end>
  233.       BlockOffset = 1
  234.       HighlightPos = cpAny
  235.       IgnoreAsParent = False
  236.     end>
  237.   CodeTemplates = <>
  238.   SubAnalyzers = <
  239.     item
  240.       DisplayName = 'A2ML'
  241.       StartExpression = '(?i) /begin\s+a2ml'#13#10
  242.       EndExpression = '(?i) /end \s+ a2ml'#13#10
  243.       SyntAnalyzer = SyntAnal18
  244.     end>
  245.   TokenTypeNames.Strings = (
  246.     'Unknown'
  247.     'Comment'
  248.     'Identifier'
  249.     'Symbol'
  250.     'String'
  251.     'Integer const'
  252.     'Float const'
  253.     'Hex const'
  254.     'Char const'
  255.     'Block begin'
  256.     'Block end')
  257.   MarkedBlockStyle = 'Marked block'
  258.   DefaultStyleName = 'Default'
  259.   Extentions = 'a2l'
  260.   LexerName = 'ASAP 2 database'
  261. end
  262.